//
//  ILGLocation.h
//  WangHuo
//
//  Created by zhangtongle on 2017/5/23.
//  Copyright © 2017年 ifeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ILGLocationItem.h"
#import <CoreLocation/CoreLocation.h>

typedef NS_ENUM(NSInteger, IWHLocationError) {
    IWHLocationErrorDeny = -101, //用户拒绝
    IWHLocationErrorUnLock = -102, //用户未打开定位服务
    IWHLocationErrorResultNil = -103, //定位结果为空
    IWHLocationErrorOther = -204
};

@interface ILGLocation : NSObject
@property (nonatomic, assign) CLAuthorizationStatus status;
@property (nonatomic, strong) ILGLocationItem *locationInfo;

@property (nonatomic, copy) NSString *cityName;

+ (instancetype)sharedInstance;

- (void)currentLocation:(void(^)(ILGLocationItem *locationInfo))callback;
@end
